package com.shuwen.gcdj.bean.api.request;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;

@Data
@ApiModel
public class AddApiReq {
    /**
     * 父Api id
     */
    @ApiModelProperty("父Api id")
    private String parentId;

    /**
     * Api初始化权限码
     */
    @ApiModelProperty("Api初始化权限码")
    private String powerCode;

    /**
     *  Api code
     */
    @ApiModelProperty(value = "Api code", required = true)
    private String code;

    /**
     * Api名称
     */
    @ApiModelProperty(value = "Api名称", required = true)
    @NotBlank(message = "Api名称必填")
    private String name;

//    /**
//     * 节点类型 1:Api叶子节点 2:目录
//     */
//    @ApiModelProperty(value = "节点类型 1:Api叶子节点 2:目录", required = true)
//    @NotNull(message = "Api节点类型必须填写")
//    private Integer nodeType;

    /**
     * Api路径
     */
    @ApiModelProperty("Api路径")
    private String uri;

    /**
     * Api描述
     */
    @ApiModelProperty("Api描述")
    private String desc;

    /**
     * Api排序，值越小越靠前
     */
    @ApiModelProperty("Api排序，值越小越靠前")
    private Integer sort;
}
